package com.wins.litemall.api;

import com.wins.litemall.model.CartModel;

import static io.restassured.RestAssured.given;

// 购物车业务相关的接口信息
public class CartApi extends BaseLitemallApi{
    // 增删查改

    public void create(CartModel cartModel){

        String addCartUrl = "/wx/cart/add";
//        String addCartData = "{\"goodsId\":"+goodsId+",\"number\":1,\"productId\":"+productsID+"}";
        String errmsg = given().filter(filter).log().all().body(cartModel)
                .when().post(addCartUrl)
                .then().extract().path("errmsg");

    }

    public void delete(Integer id){

    }

    public void get(){

    }

    public void update(){

    }

}

